<?php

class Empeval_Methods_Data_BehavioralIndicator {
	
	public $id;
	public $name;
	public $lastModified;
	public $created;
	/**
	 *
	 * @var Empeval_Methods_Data_EmployeeEvaluationValue
	 */
	public $value = null;
	
	public function __construct(EmpevalBehavioralIndicators $bi) {
		$this->id = $bi->getId();
		$this->name = $bi->getName();
		$this->lastModified = $bi->getLastModified();
		$this->created = $bi->getCreated();
		if ($bi->getEmployeeEvaluationValuess()->getFirst() instanceof EmpevalEmployeeEvaluationValues)
			$this->value = new Empeval_Methods_Data_EmployeeEvaluationValue($bi->getEmployeeEvaluationValuess()->getFirst());
	}
	
}